package pres.liko.iot.bean;

public enum ResponCode {

    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    USER_NOT_LOGIN(401, "账号或密码错误"),
    USER_IS_EXIST(402, "该账号已存在"),
    NO_STATUS(403, "禁止登录"),
    ;
    private int code;
    private String msg;

    ResponCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
